PROGS = main

all: clean java $(PROGS)

java: ;javac *.java

$(PROGS):
	gcc -g -I/opt/java/include -I/opt/java/include/linux $@.c -ljava -o $@ -L/opt/java/jre/lib/i386 -L/opt/java/jre/lib/i386/client -ljava -lverify -ljvm

clean: ;-$(RM) *.class main
